package global

import "strconv"

type itemParser struct {
}

func init() {
	parser := new(itemParser)
	register("GoldCoinItemId", parser.Parse)
	register("DiamondItemId", parser.Parse)
}

func (parser *itemParser) Parse(text string) (result interface{}, err error) {
	result, err = strconv.Atoi(text)
	return
}
